package com.alibaba.csp.sentinel.dashboard.rule.nacos;

import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.SystemRuleEntity;

/**
 * 系统规则
 * SystemRuleApolloService
 *
 * @author kancy
 * @date 2020/5/4 15:43
 */
public class SystemRuleNacosService extends DynamicRuleNacosService<SystemRuleEntity> {
    /**
     * 获取数据ID
     *
     * @param appName
     * @return
     */
    @Override
    protected String getDataId(String appName) {
        return String.format("%s%s", appName, getNacosProperties().getSystemDataIdSuffix());
    }
}
